home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 64
/
Volume 64 - JOGO DISK .iso
/
Games
/
skecthpad.swf
/
scripts
/
frame_35
/
PlaceObject2_428_121
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-04-25
|
4KB
|
161 lines
onClipEvent(enterFrame){
this.gotoAndStop(_root.activeitem);
if(_root._ymouse <= 110 + _root.setthickness * 2)
{
lining = false;
_root.temporaryliner.removeMovieClip();
drawing = false;
ereasing = false;
circelling = false;
squaring = false;
fillsquaring = false;
if(_root.cursr._alpha < 100)
{
_root.cursr._alpha += 10;
}
if(_alpha > 0)
{
_alpha = _alpha - 10;
}
}
else if(_root._ymouse >= 440 - _root.setthickness * 2)
{
lining = false;
_root.temporaryliner.removeMovieClip();
drawing = false;
ereasing = false;
circelling = false;
squaring = false;
fillsquaring = false;
if(_root.cursr._alpha < 100)
{
_root.cursr._alpha += 10;
}
if(_alpha > 0)
{
_alpha = _alpha - 10;
}
}
else if(_root._xmouse <= 130 + _root.setthickness * 2)
{
lining = false;
_root.temporaryliner.removeMovieClip();
drawing = false;
ereasing = false;
circelling = false;
squaring = false;
fillsquaring = false;
if(_root.cursr._alpha < 100)
{
_root.cursr._alpha += 10;
}
if(_alpha > 0)
{
_alpha = _alpha - 10;
}
}
else if(_root._xmouse >= 680 - _root.setthickness * 2)
{
lining = false;
_root.temporaryliner.removeMovieClip();
drawing = false;
ereasing = false;
circelling = false;
squaring = false;
fillsquaring = false;
if(_root.cursr._alpha < 100)
{
_root.cursr._alpha += 10;
}
if(_alpha > 0)
{
_alpha = _alpha - 10;
}
}
else
{
if(_root.cursr._alpha > 0)
{
_root.cursr._alpha -= 10;
}
if(_alpha < 100)
{
_alpha = _alpha + 10;
}
}
Mouse.hide();
_X = _root._xmouse;
_Y = _root._ymouse;
if(drawing == true)
{
with(_root["drawline" + symbolnumber])
{
lineStyle(_root.setthickness,_root.setcolor,_root.setopacity);
lineTo(_root.pencil._x,_root.pencil._y);
}
}
if(ereasing == true)
{
with(_root["drawline" + symbolnumber])
{
lineStyle(_root.setthickness * 4,16711160,100);
lineTo(_root.pencil._x,_root.pencil._y);
}
}
if(lining == true)
{
_root.createEmptyMovieClip("temporaryliner",symbolnumber);
with(_root.temporaryliner)
{
moveTo(_root.pencil.start_line_x,_root.pencil.start_line_y);
lineStyle(_root.setthickness,_root.setcolor,_root.setopacity);
lineTo(_root.pencil._x,_root.pencil._y);
}
}
if(squaring == true)
{
_root.createEmptyMovieClip("temporarysquare",symbolnumber);
with(_root.temporarysquare)
{
moveTo(_root.pencil.start_line_x,_root.pencil.start_line_y);
lineStyle(_root.setthickness,_root.setcolor,_root.setopacity);
lineTo(_root.pencil._x,_root.pencil.start_line_y);
lineTo(_root.pencil._x,_root.pencil._y);
lineTo(_root.pencil.start_line_x,_root.pencil._y);
lineTo(_root.pencil.start_line_x,_root.pencil.start_line_y);
}
}
if(fillsquaring == true)
{
_root.createEmptyMovieClip("temporarysquare",symbolnumber);
with(_root.temporarysquare)
{
moveTo(_root.pencil.start_line_x,_root.pencil.start_line_y);
beginFill(_root.setcolor,_root.setopacity);
lineStyle(1,0,0);
lineTo(_root.pencil._x,_root.pencil.start_line_y);
lineTo(_root.pencil._x,_root.pencil._y);
lineTo(_root.pencil.start_line_x,_root.pencil._y);
lineTo(_root.pencil.start_line_x,_root.pencil.start_line_y);
endFill();
}
}
if(drawing == false)
{
if(Key.isDown(17) && Key.isDown(90) && undocounter == 0)
{
symbolnumber--;
_root["drawline" + symbolnumber].removeMovieClip();
undocounter = 10;
}
if(undocounter > 0)
{
undocounter--;
}
}
if(symbolnumber < 1)
{
symbolnumber = 1;
}
}